package com.astar.service;

import com.astar.entity.*;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 用户信息表 服务类
 * </p>
 *
 * @author jobob
 * @since 2020-01-17
 */
public interface IUserService extends IService<User> {

    Set<String> selectPerms(String loginName);

    List<CustomUser> selectUserPower(String loginName);

    Role selectAllForId(Integer id);

    //显示
    List<CustomUser> selectAll(Integer id);

    //部门树
    List<Dept> selectDepTree();

    //查询所有
    List<User> select();

    List<CusUser> queryUserByDeptId(Integer deptId, String userName, String loginName);

    CusUser selectForid(Integer id);

    int updateForId(User user);

    int delete(User user);


}
